/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package cpasl;

import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.HPos;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.ColumnConstraints;
import javafx.scene.layout.GridPane;

/**
 *
 * @author seanm_000
 */
public class RandomExampleDoneGroup extends GridPane {
    
    public RandomExampleDoneGroup() {
        setAlignment(Pos.CENTER);
        setVgap(40);
        
        ColumnConstraints column1 = new ColumnConstraints();
        column1.setHalignment(HPos.CENTER);
        getColumnConstraints().add(column1); 
        
        Label label = new Label("End of examples.  If you have questions, ask the experimenter now.");
        add(label, 0, 0);
        Button button = new Button("Start");
        button.setId("start-button");
        button.setOnAction(new EventHandler<ActionEvent>() {

            @Override
            public void handle(ActionEvent event) {
                CpaslManager.getInstance().switchToDisplay(Groups.PRIME, 250);
            }
            
        });
        add(button, 0, 2);
        
    }
    
}
